<div class="main-area">
    <?php $this->load->view('template/block/slideshow'); ?>
    <div class="welcome floatLeft">Xin chào <span><?php echo ($this->session->userdata('fullname_mem') ? $this->session->userdata('fullname_mem') : $this->session->userdata('username_mem') ? $this->session->userdata('fullname_mem') ? $this->session->userdata('fullname_mem') : $this->session->userdata('username_mem') : 'Khách')?></span> | <a style="font-weight: bold;color: #6b4114" href="<?php echo $baseurl.'thoat.html'?>"><?php echo $this->session->userdata('username_mem') ? 'Thoát' : 'Đăng nhập'?></a></div>

    <div class="clear"></div>
    <div class="avatar" style="<?php $data->avatar ? $data->avatar : 'background: url("'.$baseurl.'public/theme/version-2.0/images/avatar.png");'?>;">
        <input style="top: 0;opacity: 0;position: absolute;height: 100%;width: 100%;cursor: pointer" id="photo1" type="file" name="photo" accept="image/*" capture="camera"/>
    </div>		
    <div class="user-info form changepass">
        <?php if(validation_errors()): ?>
            <div class="alert alert-error" style="margin: 10px 10px 10px 0px;">
              <?php echo validation_errors(); ?>
            </div>
        <?php endif;?>
        <?php echo form_open()?>
            <p><label>Mật khẩu cũ</label> <span><input type="password" class="input-text" id="pass" name="old_password" placeholder="Mật khẩu cũ" value="" /></span></p>
            <p><label>Mật khẩu mới</label> <span><input type="password" class="input-text" id="passnew" name="password" placeholder="Mật khẩu mới" value="" /></span></p>
            <p><label>Nhập lại mật khẩu mới</label> <span><input type="password" class="input-text" id="passnew2" name="verify_password" placeholder="Nhập lại mật khẩu mới" value="" /></span></p>
            <p><button class="btn btn-update floatRight"></button></p>
        </form>
    </div>
</div>